define(function  (require, exports, module) {
    function alertBox() {
        var promptBox = "";
        promptBox += "<div id='position-box' class='alert-prompt-box hide'>";
        //正确
        promptBox += "<div class='prompt hide' id='prompt-box-right'>" +
            "<img src='../../../../../company/img/alertsuc.png' class='right-img' alt='成功'>" +
            "<div class='alert-mark-right'>Success</div>" +
            "<div class='alert-content'>" +
            "<input class='prompt-show-font' value style='border: none;text-align: center'>" + "</div>" +
            "<input type='button' class='button-ok' value='OK'>" + "</div>";
        //错误
        promptBox += "<div class='prompt hide' id='prompt-box'>" +
            "<div class='error-img'><span class='poor'>X</span></div>" +
            "<div class='alert-mark'>Oops...</div>" +
            "<div class='alert-content'>" +
            "<input class='prompt-show-font' value style='border: none;text-align: center'>" +"</div>" +
            "<input type='button' class='button-ok' value='OK'>" + "</div>";
        promptBox += "</div>";

        $.template( "alertTemplate", promptBox );
        $.tmpl("alertTemplate", promptBox).appendTo("body");

        require("../control/checkCode");//验证码及弹框

        $(".button-ok").click(function () {//关闭弹框
            $("#prompt-box").addClass('hide')
            $("#position-box").addClass('hide')
        })
    }
    module.exports = alertBox();
})